/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package l1j.server.server.serverpackets;

import l1j.server.server.Opcodes;

public class S_CharInfo extends ServerBasePacket
{
	public String CharName, ClanName; 
	public byte CharType, CharSex;
	public short CharLawful, CurrentHp, CurrentMp;
	public byte CharAc, CharLevel, CharSTR, CharDEX, CharCON, CharCHA, CharWIS, CharINT;
	
	public byte[] getContent()
	{
		writeC(Opcodes.S_OPCODE_CHARLIST);
		
		writeS(CharName);
		writeS(ClanName);
		
		// Max Value : 127
		writeC(CharType);	// QRA 34
		writeC(CharSex);
		
		// Max Value : 32767
		writeH(CharLawful);
		writeH(CurrentHp);
		writeH(CurrentMp);
		
		// Max Value : 127
		writeC(CharAc);
		writeC(CharLevel);
		writeC(CharSTR);
		writeC(CharDEX);
		writeC(CharCON);
		writeC(CharCHA);
		writeC(CharWIS);
		writeC(CharINT);
		
		writeC(0);	// Unknown
		
		return getBytes();
	}
}
